package com.sunwayworld.basemodule.samplemanage.sample.dto;

import com.deepoove.poi.data.PictureRenderData;
import com.deepoove.poi.data.PictureType;
import com.sunwayworld.framework.data.annotation.Transient;

import java.io.Serializable;

public class LimsBarCodeDTO implements Serializable {

    @Transient
    private static final long serialVersionUID = 4649543721535675279L;

    private String sampleCode;//样本编号
    private String sampleName;//样本名称
    private String batchCode;//订单编号
    private String board;//板位置
    private byte[] barcode;//二维码
    private String date;// 日期

    private int barCodeSize = 50;

    // 样本标签前面圆形区域的上半部分和下半部分
    private String codeFront;
    private String codeBack;

    public int getBarCodeSize() {
        return barCodeSize;
    }

    public void setBarCodeSize(int barCodeSize) {
        this.barCodeSize = barCodeSize;
    }

    public String getCodeFront() {
        return codeFront;
    }

    public void setCodeFront(String codeFront) {
        this.codeFront = codeFront;
    }

    public String getCodeBack() {
        return codeBack;
    }

    public void setCodeBack(String codeBack) {
        this.codeBack = codeBack;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getSampleCode() {
        return sampleCode;
    }

    public void setSampleCode(String sampleCode) {
        this.sampleCode = sampleCode;
    }

    public String getSampleName() {
        return sampleName;
    }

    public void setSampleName(String sampleName) {
        this.sampleName = sampleName;
    }

    public PictureRenderData getBarcode() {
        return new PictureRenderData(this.barCodeSize, this.barCodeSize, PictureType.suggestFileType(".png"), barcode);
    }

    public void setBarcode(byte[] barcode) {
        this.barcode = barcode;
    }

    public String getBatchCode() {
        return batchCode;
    }

    public void setBatchCode(String batchCode) {
        this.batchCode = batchCode;
    }

    public String getBoard() {
        return board;
    }

    public void setBoard(String board) {
        this.board = board;
    }

}
